//
//  StrategyAttraction_tripsParser.m
//  ITrip
//
//  Created by 1564335 on 15-6-2.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "StrategyAttraction_tripsParser.h"

@implementation StrategyAttraction_tripsParser

- (instancetype)init:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.arrayData = [NSMutableArray array];
        self.comment = dic[@"comment"];
        self.node_id = [dic[@"node_id"] integerValue];
        self.photos_count = [dic[@"photos_count"] integerValue];
        NSArray *array = dic[@"notes"];
        for (NSDictionary *dic in array) {
//            NSLog(@"%@", dic);
            StrategyNotesParser *parser = [[StrategyNotesParser alloc] init:dic];
            [self.arrayData addObject:parser];
        }
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@""]) {
        
    }
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

@end
